/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 08:41:37
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 10:24:23
 */
//基类
public class Animal{
    //成员变量
    private String color;
    private int age;
    public Animal(){

    }
    public Animal(String color,int age){
       this.color=color;
       this.age=age;
    }
   
    //成员方法
    public void eat(){
        System.out.println("动物在吃东西");
    }
    public void sleep(){
        System.out.println("动物在睡觉");
    }
}